-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
drivers: flash: stm32 xspi and ospi: early init exit for memap mode #82088
base: main
Are you sure you want to change the base?
drivers: flash: stm32 xspi and ospi: early init exit for memap mode #82088
Conversation
d78a967
to
0fd925a
Compare
Compliance checks fail due to " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably same approach is valid for the https://github.com/zephyrproject-rtos/zephyr/blob/main/drivers/flash/flash_stm32_xspi.c
Due to recent CI change. Please rebase |
Exit the init earlier when OSPI is in memory map mode. Avoid unnecessary checks and prevent pin reconfiguration that might cause line spikes. Clock check beforehand is preserved. Remove '\n' from the LOG_DBG string. Signed-off-by: Georgij Cernysiov <[email protected]>
Exit the init earlier when XSPI is in memory map mode. Avoid unnecessary checks and prevent pin reconfiguration that might cause line spikes. Clock check beforehand is preserved. Remove '\n' from the LOG_DBG string. Signed-off-by: Georgij Cernysiov <[email protected]>
0fd925a
to
b33fe56
Compare
I rebased and added the same early exit to the xSPI driver. However, an unrelated storage flash map test fails. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for those changes
Exit the init earlier when OSPI or xSPI is in memory map mode. Avoid unnecessary checks and prevent pin reconfiguration
that might cause line spikes (e.g. when pin config differs between an application and a bootloader). Clock check beforehand is preserved (mainly for non-mem-map mode operation as we access the register. When the clock is not enabled in mem map mode it will be noticed way earlier).
Misc: removed
\n
from the LOG_DBG string.